<h3>My resumes</h3>

<table class="table">
  <thead>
    <tr>
      <td>Job of sent</td>
      <td>CV Content</td>
      <td>Attachment</td>
      <td>Date</td>
    </tr>
  </thead>

  <tbody>
    <% @resumes.each do |resume| %>
    <tr>
      <td> <%= link_to resume.job.title, job_path(resume.job) %> </td>
      <td> <%= resume.content %> </td>

      <% if resume.attachment.present? %>
      <td> <%= resume.attachment %> </td>
      <% else %>
      <td> No attachment </td>
      <% end %>

      <td><%= resume.created_at %></td>
    </tr>
    <% end %>
  </tbody>
</table>
